package com.nuoniu.sibanyun.mapper.crm;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.crm.CrmUserSearch;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 查询视图 Mapper 接口
 * </p>
 *
 * @author baiqiang
 * @since 2020-06-20
 */
public interface CrmUserSearchMapper extends BaseMapper<CrmUserSearch> {

    /**
     * 获取用户查询列表
     * @author 小啊刚
     * @date 2020/6/23
     */
    @Select("select * from crm_user_search where create_user_id = #{userId} and search_type = #{searchType}")
    List<CrmUserSearch> getUserSearch(Integer searchType, Integer userId);


}
